package com.yhao.stocknew.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 股票信息表
 * </p>
 *
 * @author yhao
 * @since 2023-12-15
 */
@ApiModel(value = "StockInfo对象", description = "股票信息表")
@NoArgsConstructor
@AllArgsConstructor
public class StockInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "股票代码")
    private String dCode;

    @ApiModelProperty(value = "股票名称")
    private String dName;

    @ApiModelProperty(value = "说明：1：上；2：深3：创；4、科创")
    private Integer dBelong;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getdCode() {
        return dCode;
    }

    public void setdCode(String dCode) {
        this.dCode = dCode;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public Integer getdBelong() {
        return dBelong;
    }

    public void setdBelong(Integer dBelong) {
        this.dBelong = dBelong;
    }

    @Override
    public String toString() {
        return "StockInfo{" +
                "id=" + id +
                ", dCode=" + dCode +
                ", dName=" + dName +
                ", dBelong=" + dBelong +
                "}";
    }

    public StockInfo(String dCode, String dName) {
        this.dCode = dCode;
        this.dName = dName;
    }
}
